package yx.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * BsRelationship entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_relationship", catalog = "")
public class BsRelationship implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer studentId;
	private String name;
	private String relationship;
	private String corporationName;
	private String phone;
	private String qq;
	private String email;
	private String memo;

	// Constructors

	/** default constructor */
	public BsRelationship() {
	}

	/** full constructor */
	public BsRelationship(Integer studentId, String name, String relationship, String corporationName, String phone, String qq, String email, String memo) {
		this.studentId = studentId;
		this.name = name;
		this.relationship = relationship;
		this.corporationName = corporationName;
		this.phone = phone;
		this.qq = qq;
		this.email = email;
		this.memo = memo;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "STUDENT_ID")
	public Integer getStudentId() {
		return this.studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	@Column(name = "NAME", length = 32)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "RELATIONSHIP", length = 2)
	public String getRelationship() {
		return this.relationship;
	}

	public void setRelationship(String relationship) {
		this.relationship = relationship;
	}
	
	@Column(name = "CORPORATION_NAME")
	public String getCorporationName() {
		return corporationName;
	}

	public void setCorporationName(String corporationName) {
		this.corporationName = corporationName;
	}

	@Column(name = "PHONE", length = 32)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "QQ", length = 32)
	public String getQq() {
		return this.qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	@Column(name = "EMAIL", length = 64)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "MEMO")
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}